/**
 * 自定义全局指令 v-autoFocus自动聚焦指令
 */
export default {
    updated(el: HTMLElement, binding: any) {
        if (binding.value || binding.value === undefined) {
            // el.children[0].children[0].focus()
            if(el.children[0].children[0].tagName === 'INPUT') {
                el.children[0].children[0].focus()
            } else {
                el.focus()
            }
        }
    },
}
